package com.ling.jpa.schedule;

import com.ling.jpa.repository.UserRepository;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

    @JobHandler("jpaJobHandler")
@Component
public class TestJobExecutor extends IJobHandler {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    UserRepository userRepository;

    @Override
    public ReturnT<String> execute(String s) throws Exception {
        logger.info("jpa");
        return null;
    }
}
